from fastapi import FastAPI
from boot import IMG_ROOT_DIR
from fastapi.staticfiles import StaticFiles

# 创建接口实例
app = FastAPI()

# 注册静态文件目录
app.mount("/static", StaticFiles(directory=IMG_ROOT_DIR), name="static")

# 接口全局配置信息
class ApiGlobalConfig:
    """
    接口全局配置信息
    """
    text: str = ""
    img_path: str = ""

# 加载接口
from .api import *